The first step in adding effects to a QuickTime movie is to create an effects track. This is accomplished by using the standard QuickTime API for track creation, for example:
theEffectsTrack = NewMovieTrack(theMovie, kTrackWidth, kTrackHeight, 0);
You then call the NewTrackMedia function to add a media to the track. The type of the media for an effects track should always be VideoMediaType , and the media should have whatever duration you want the effect to have. Here is an example call to NewTrackMedia :
theEffectsMedia = NewTrackMedia(theEffectsTrack, VideoMediaType, 600, nil, 0);
| Previous | Chapter Contents | Chapter Top | Next |